Page({
  data:{
    users: {}
  },
    onLoad: function(){
      this.getUsers()
        this.setData({
            icon: '../../images/bq1.png',
            slideButtons: [{
              text: '普通',
              src: '../../images/bq1.png', // icon的路径
            },{
              text: '普通',
              extClass: 'test',
                src: '../../images/bq1.png', // icon的路径
            },{
              type: 'warn',
              text: '警示',
              extClass: 'test',
                src: '../../images/bq1.png', // icon的路径
            }],
        });
    },
    slideButtonTap(e) {
        console.log('slide button tap', e.detail)
    },
    getUsers(){
      wx.cloud.callFunction({
        name: 'getUserInfoTotal',
      }).then(res=>{
        this.setData({
          users: res.result.data
        })
      })
    }
});